package com.ztman.rxjava.model.entityExtends.self;

import java.util.List;

/**
 * Created by YJH on 2017/11/29.
 * 功能:个人身份信息的封装类
 */

public class SelfInfo {

    /**
     * identitys : [{"identityrankid":1,"identitytypeid":1,"levelname":"平民"},{"identityrankid":12,"identitytypeid":2,"levelname":"凝气"}]
     * accountInfo : {"accountid":2,"accountnumber":"j_13161957417","phone":"13161957417","nickname":"歼23","avatar":"http://182.92.64.42:8080/jiujia/resources/users/2/images/20171121/img_2_151122820815169594.jpg"}
     * userInfo : {"auth":"4,0,1,3","sex":1,"age":27}
     * userCredit : {"score":100,"creditid":2}
     * userIntegral : {"integral":30,"integralid":2}
     * userWallet : {"walletid":2,"money":714,"awardmoney":0,"incomemoney":10.8}
     */

    private AccountInfoBean accountInfo;
    private UserInfoBean userInfo;
    private UserCreditBean userCredit;
    private UserIntegralBean userIntegral;
    private UserWalletBean userWallet;
    private List<IdentitysBean> identitys;

    public AccountInfoBean getAccountInfo() {
        return accountInfo;
    }

    public void setAccountInfo(AccountInfoBean accountInfo) {
        this.accountInfo = accountInfo;
    }

    public UserInfoBean getUserInfo() {
        return userInfo;
    }

    public void setUserInfo(UserInfoBean userInfo) {
        this.userInfo = userInfo;
    }

    public UserCreditBean getUserCredit() {
        return userCredit;
    }

    public void setUserCredit(UserCreditBean userCredit) {
        this.userCredit = userCredit;
    }

    public UserIntegralBean getUserIntegral() {
        return userIntegral;
    }

    public void setUserIntegral(UserIntegralBean userIntegral) {
        this.userIntegral = userIntegral;
    }

    public UserWalletBean getUserWallet() {
        return userWallet;
    }

    public void setUserWallet(UserWalletBean userWallet) {
        this.userWallet = userWallet;
    }

    public List<IdentitysBean> getIdentitys() {
        return identitys;
    }

    public void setIdentitys(List<IdentitysBean> identitys) {
        this.identitys = identitys;
    }

    public static class AccountInfoBean {
        /**
         * accountid : 2
         * accountnumber : j_13161957417
         * phone : 13161957417
         * nickname : 歼23
         * avatar : http://182.92.64.42:8080/jiujia/resources/users/2/images/20171121/img_2_151122820815169594.jpg
         */

        private int accountid;
        private String accountnumber;
        private String phone;
        private String nickname;
        private String avatar;

        public int getAccountid() {
            return accountid;
        }

        public void setAccountid(int accountid) {
            this.accountid = accountid;
        }

        public String getAccountnumber() {
            return accountnumber;
        }

        public void setAccountnumber(String accountnumber) {
            this.accountnumber = accountnumber;
        }

        public String getPhone() {
            return phone;
        }

        public void setPhone(String phone) {
            this.phone = phone;
        }

        public String getNickname() {
            return nickname;
        }

        public void setNickname(String nickname) {
            this.nickname = nickname;
        }

        public String getAvatar() {
            return avatar;
        }

        public void setAvatar(String avatar) {
            this.avatar = avatar;
        }

        @Override
        public String toString() {
            return "AccountInfoBean{" +
                    "accountid=" + accountid +
                    ", accountnumber='" + accountnumber + '\'' +
                    ", phone='" + phone + '\'' +
                    ", nickname='" + nickname + '\'' +
                    ", avatar='" + avatar + '\'' +
                    '}';
        }
    }

    public static class UserInfoBean {
        /**
         * auth : 4,0,1,3
         * sex : 1
         * age : 27
         */

        private String auth;
        private int sex;
        private int age;

        public String getAuth() {
            return auth;
        }

        public void setAuth(String auth) {
            this.auth = auth;
        }

        public int getSex() {
            return sex;
        }

        public void setSex(int sex) {
            this.sex = sex;
        }

        public int getAge() {
            return age;
        }

        public void setAge(int age) {
            this.age = age;
        }

        @Override
        public String toString() {
            return "UserInfoBean{" +
                    "auth='" + auth + '\'' +
                    ", sex=" + sex +
                    ", age=" + age +
                    '}';
        }
    }

    public static class UserCreditBean {
        /**
         * score : 100
         * creditid : 2
         */

        private int score;
        private int creditid;

        public int getScore() {
            return score;
        }

        public void setScore(int score) {
            this.score = score;
        }

        public int getCreditid() {
            return creditid;
        }

        public void setCreditid(int creditid) {
            this.creditid = creditid;
        }
    }

    public static class UserIntegralBean {
        /**
         * integral : 30
         * integralid : 2
         */

        private int integral;
        private int integralid;

        public int getIntegral() {
            return integral;
        }

        public void setIntegral(int integral) {
            this.integral = integral;
        }

        public int getIntegralid() {
            return integralid;
        }

        public void setIntegralid(int integralid) {
            this.integralid = integralid;
        }
    }

    public static class UserWalletBean {
        /**
         * walletid : 2
         * money : 714
         * awardmoney : 0
         * incomemoney : 10.8
         */

        private int walletid;
        private int money;
        private int awardmoney;
        private double incomemoney;

        public int getWalletid() {
            return walletid;
        }

        public void setWalletid(int walletid) {
            this.walletid = walletid;
        }

        public int getMoney() {
            return money;
        }

        public void setMoney(int money) {
            this.money = money;
        }

        public int getAwardmoney() {
            return awardmoney;
        }

        public void setAwardmoney(int awardmoney) {
            this.awardmoney = awardmoney;
        }

        public double getIncomemoney() {
            return incomemoney;
        }

        public void setIncomemoney(double incomemoney) {
            this.incomemoney = incomemoney;
        }
    }

    public static class IdentitysBean {
        /**
         * identityrankid : 1
         * identitytypeid : 1
         * levelname : 平民
         */

        private int identityrankid;
        private int identitytypeid;
        private String levelname;

        public int getIdentityrankid() {
            return identityrankid;
        }

        public void setIdentityrankid(int identityrankid) {
            this.identityrankid = identityrankid;
        }

        public int getIdentitytypeid() {
            return identitytypeid;
        }

        public void setIdentitytypeid(int identitytypeid) {
            this.identitytypeid = identitytypeid;
        }

        public String getLevelname() {
            return levelname;
        }

        public void setLevelname(String levelname) {
            this.levelname = levelname;
        }
    }

    @Override
    public String toString() {
        return "SelfInfo{" +
                "accountInfo=" + accountInfo +
                ", userInfo=" + userInfo +
                ", userCredit=" + userCredit +
                ", userIntegral=" + userIntegral +
                ", userWallet=" + userWallet +
                ", identitys=" + identitys +
                '}';
    }
}
